package com.jcj.jcjcache.command;

import com.jcj.jcjcache.core.Command;
import com.jcj.jcjcache.core.Commands;
import com.jcj.jcjcache.core.JcjCache;
import com.jcj.jcjcache.core.Reply;

public class CommandCommand implements Command {

    @Override
    public String name() {
        return "COMMAND";
    }

    @Override
    public Reply<?> exec(JcjCache cache, String[] args) {
        return Reply.array(Commands.getCommandNames());
    }
}
